package com.flyduck.modules.schedule.mapper;

import com.flyduck.modules.schedule.domain.SysScheduleJobLog;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SysScheduleJobLogMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysScheduleJobLog record);

    int insertSelective(SysScheduleJobLog record);

    SysScheduleJobLog selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysScheduleJobLog record);

    int updateByPrimaryKey(SysScheduleJobLog record);

    /**
     * 根据关键字分页查询
     * @param keyword
     * @return
     */
    Page<SysScheduleJobLog> findPage(@Param("keyword") String keyword);

    /**
     * 清理定时任务日志
     */
    void deleteAll();

}